package thread.thread2;

public class Daemon extends Thread {
	@Override
	public void run() {
		while (true) {
			System.out.println("这是守候线程");
		}
	}

	public static void main(String[] args) {
		Daemon t = new Daemon();
		t.setDaemon(true);
		t.start();
		System.out.println("主线程结束了");
	}

}
